import Vue from 'vue'

export default {
  // 重置密码
  async resetPassword (data) {
    return Vue.http.post('./gxUser/setPass', data)
  },

  // 获取原手机号 验证码
  async sendSms (data = {}) {
    data.userType = 1
    return Vue.http.post('./userSecurity/sendSms', data)
  },

  // 验证原手机号 验证码
  async validSms (data = {}) {
    return Vue.http.post('./userSecurity/valOldSms', data)
  },

  // 获取新手机号 验证码
  async sendNewSms (data = {}) {
    data.userType = 1
    return Vue.http.post('./userSecurity/sendSmsNew', data)
  },

  // 修改手机号
  async changeMobile (data = {}) {
    data.userType = 1
    return Vue.http.post('./userSecurity/restmobile', data)
  }
}
